package www.openteam.com.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 客户类别
 * Created by kylin on 2016/10/7.
 */

public class CustomType {


    private List<DataBean> data;

    public List<DataBean> getData() {
        return data;
    }


    public static class DataBean implements Parcelable {
        private String code;
        private String name;

        protected DataBean(Parcel in) {
            code = in.readString();
            name = in.readString();
        }

        public DataBean(String code, String name) {
            this.code = code;
            this.name = name;
        }

        public DataBean() {
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel in) {
                return new DataBean(in);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "code='" + code + '\'' +
                    ", name='" + name + '\'' +
                    '}';
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(code);
            dest.writeString(name);
        }


    }


}
